package com.kgc.service;

import com.github.pagehelper.PageInfo;
import com.kgc.entity.News;

import java.util.List;
import java.util.Map;

public interface NewsService {

    PageInfo<News> selectNewsByTitle(Map<String, Object> params);

    void allNews();

    int addNews(News news);

    int updateNews(News news);

    int deleteNews(Integer id);

    News getNewsById(Integer id);

    List<News> getFrontFiveNews();

    News getNewsByTitle(String title);
}
